package com.soft.mainsite.module.web.system.service;

import com.github.pagehelper.PageInfo;
import com.soft.mainsite.mybatis.model.TSysAttachment;

import java.util.List;

/**
 * Description:
 *
 * @author Jin
 * @create 2017-08-08
 **/
public interface AttachmentService {

    /**
     * 保存
     *
     * @param pojo
     */
    void save(TSysAttachment pojo);

    /**
     * 删除
     *
     * @param ids
     * @return
     */
    String delete(Long[] ids);

    /**
     * 根据key查询
     *
     * @param key
     * @return
     */
    TSysAttachment findByKey(String key);

    /**
     * 查询列表
     *
     * @param pojo
     * @return
     */
    List<TSysAttachment> findList(TSysAttachment pojo);

    /**
     * 查询所有
     *
     * @return
     */
    List<TSysAttachment> findAll();

    /**
     * 分页查询
     *
     * @param pageNumber
     * @param pageSize
     * @param pojo
     * @return
     */
    PageInfo<TSysAttachment> page(Integer pageNumber, Integer pageSize, TSysAttachment pojo);

    /**
     * 分页查询
     *
     * @param pageNumber
     * @param pageSize
     * @return
     */
    PageInfo<TSysAttachment> page(Integer pageNumber, Integer pageSize);

}
